package com.whfp.coky.ble.utils

import com.whfp.afs330h_sdk.utils.RxHexTool

/**
 *
 * 拉亚指令构造
 * created by coky on 2022/4/9
 */
class BleCodeBuilder {

//    物证箱相关
    companion object{

        var cid = 11//发送序号
        var CID_MAX = 0x0a//发送序号
        fun getUserId(userid:String):String{
            return RxHexTool.str2HexStr(userid)
        }
        fun getUserIdLength(userid:String):String{
            return RxHexTool.str2HexStr(userid.length.toString())
        }

        fun cidPlus(){
            if (cid>100){
                cid = 10
            }
            cid++
        }

    }

}